package com.eduadmin.mapper;

import com.eduadmin.entity.Category;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryMapper {
    List<Category> getAllCategory();

    //hgm 批量插入
    int insertCategorys(List<Category> categorys);

    //hgm 根据名字查类别
    Category selectCategoryByName(String categoryName);

//    int deleteByPrimaryKey(Integer categoryId);
//    int insertSelective(Category record);

//    Category selectByPrimaryKey(Integer categoryId);

//    int updateByPrimaryKeySelective(Category record);

//    int updateByPrimaryKey(Category record);
}
